Skip to content

Prebundle dev toolbar entrypoint in client environment#16480

Merged
matthewp merged 4 commits intomainfrom
toolbar-optimize-deps
Apr 27, 2026
Merged

Prebundle dev toolbar entrypoint in client environment#16480
matthewp merged 4 commits intomainfrom
toolbar-optimize-deps

Conversation

@matthewp
Copy link
Copy Markdown
Contributor

@matthewp matthewp commented Apr 24, 2026

Changes

  • Adds astro/runtime/client/dev-toolbar/entrypoint.js to the client environment's optimizeDeps.include. That's all

Testing

  • Reproduced on a vanilla Astro project (no adapter): delete node_modules/.vite, start astro dev, navigate to /. Before: new dependencies optimized: astro/runtime/client/dev-toolbar/entrypoint.js + reload.

Docs

  • N/A, bug fix

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Apr 24, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 24, 2026

🦋 Changeset detected

Latest commit: 1de85bb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@matthewp matthewp marked this pull request as ready for review April 24, 2026 16:50
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 24, 2026

Merging this PR will not alter performance

✅ 18 untouched benchmarks


Comparing toolbar-optimize-deps (1de85bb) with main (93101cc)

Open in CodSpeed

@matthewp matthewp marked this pull request as draft April 24, 2026 17:07
@matthewp matthewp marked this pull request as ready for review April 24, 2026 18:29
'astro': patch
---

Adds the dev toolbar entrypoint to the client `optimizeDeps.include` to prevent a full page reload on first navigation during dev
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reword the changeset to make it user-facing. I don't think users need to know about optimizeDeps.include`

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Package Trust Level Decreased

Caution

Decreased trust levels may indicate a higher risk of supply chain attacks. Please review these changes carefully.

📦 Package 🔒 Before 🔓 After
drizzle-orm trusted-with-provenance provenance

@matthewp matthewp merged commit 1bcb43b into main Apr 27, 2026
27 checks passed
@matthewp matthewp deleted the toolbar-optimize-deps branch April 27, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants